package ooday01;
/**
 * 构建方法的测试类
 * @author ${pxl}
 */
public class ConsDemo {
    public static void main(String[] args) {
        //调用无参构造方法
        Student zs =new Student();
        //调用2参构造方法
        Student ls =new Student("李四",22);
        //调用4参构造方法
        Student ww =new Student("王五",23,"2023","9527");
        zs.sayHi();
        ls.sayHi();
        ww.sayHi();

        //类Car的测试
        Car benz =new Car();
        benz.brand="Benz";
        benz.color="黑色的";
        benz.price=400000.00;
        Car byd =new Car("比亚迪","红色的",150000.00);
        byd.start();
        benz.stop();
        byd.run();

    }
}
